package com.dl.tt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dl.tt.bean.Stuff;
import com.dl.tt.dao.StuffMapper;
import com.dl.tt.service.StuffService;
@Service
public class StuffServiceImpl implements StuffService{

	@Autowired
	private StuffMapper stuffMapper;
	@Override
	public List<Stuff> findAll() {
		return this.stuffMapper.findAll();
	}
	
	@Override
	public void del(int id) {
		this.stuffMapper.delStuffByID(id);
	}

	@Override
	public void insert(Stuff stuff) {
		this.stuffMapper.insert(stuff);
	}

	
}
